libxl: add device backend listener in order to launch backends
authorRoger Pau Monne <roger.pau@citrix.com>
Fri, 13 Sep 2013 08:53:58 +0000 (10:53 +0200)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Mon, 18 Nov 2013 17:09:23 +0000 (17:09 +0000)
commita0eaa86e753766a06d740bd125c0cb8b3358babf
treec61f86a482d6d3de1f5d7b68d927dd91440980c6
parent6d8dbac551d37fe3b4a6f70317fcaeba086d8589
libxl: add device backend listener in order to launch backends

Add the necessary logic in libxl to allow it to act as a listener for
launching backends in a driver domain, replacing udev (like we already
do on Dom0). This new functionality is acomplished by watching the
domain backend path (/local/domain/<domid>/backend) and reacting to
device creation/destruction.

The way to launch this listener daemon is from xl, using the newly
introduced "devd" command. The command will daemonize by default,
using "xldevd.log" as it's logfile. Optionally the user can force the
execution of the listener in the foreground by passing the "-F"
option to the devd command.

Current backends handled by this daemon include Qdisk, vbd and vif
device types.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Cc: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxl/libxl.c
tools/libxl/libxl.h
tools/libxl/xl.h
tools/libxl/xl_cmdimpl.c
tools/libxl/xl_cmdtable.c